//
//  WCUnsavedFilesRightButtonEnabledTransformer.m
//  WabbitCode
//
//  Created by William Towe on 2/9/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCUnsavedFilesRightButtonEnabledTransformer.h"
#import "WCMacros.h"


@implementation WCUnsavedFilesRightButtonEnabledTransformer
+ (Class)transformedValueClass { return [NSNumber class]; }
+ (BOOL)allowsReverseTransformation { return NO; }
- (id)transformedValue:(id)value {
	return (value == nil || ![value count])?NSNumberFalse:NSNumberTrue;
}
@end
